package com.lhj.library.domain.convert;

import com.lhj.library.domain.entity.BookBO;
import com.lhj.library.infra.basic.entity.Book;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface BookBoConverter {
    BookBoConverter INSTANCE = Mappers.getMapper(BookBoConverter.class);

    Book convertBoToBook(BookBO bookBO);

    BookBO convertBookToBo(Book book);

    List<BookBO> convertBookToBoList(List<Book> books);

}
